package agh.tk.markuptranslation;
public class Separator extends AbstractLeaf
{

	private SeparatorType separatorType ;
	
	public Separator(SeparatorType separatorType) 
	{
		super(null);
		this.separatorType = separatorType ;
	}

	@Override
	public String toDokuWiki() 
	{
		switch(separatorType)
		{
			case STRONG :
				return "\n====================\n" ;
			case NORMAL :
				return "\n--------------------\n" ;
		}
		return "" ;
	}

	@Override
	public String toMediaWiki() {
		return "----";
	}
	
	@Override
	public String toHTML() {
		return "<hr />";
	}

	@Override
	public String toTxt2tags() 
	{
		switch(separatorType)
		{
			case STRONG :
				return "\n====================\n" ;
			case NORMAL :
				return "\n--------------------\n" ;
		}
		return "" ;
	}
	
}
